package com.kmxd.ams.client.archive.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 版本表管理
 *
 * @author nickbi
 * @since 2022-07-19
 */
@Schema(description = "版本表管理对象")
@Data
public class ArchiveVersionEditDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "id")
  @NotNull(message = "主键不能为空")
  private Long id;

  /** 全宗ID */
  @Schema(description = "全宗ID")
  private Long fondsId;

  /** 门类id */
  @Schema(description = "门类id")
  @NotNull(message = "门类id不能为空")
  private Long archiveTypeId;

  /** 类型: 1归档范围 2 */
  @Schema(description = "类型: 1归档范围 2")
  private Integer type;

  /** 版本名 */
  @Schema(description = "版本名")
  @NotBlank(message = "版本名不能为空")
  @Size(max = 100, message = "版本名长度不能超过100个字符")
  private String name;

  /** 版本号 */
  @Schema(description = "版本号")
  @NotBlank(message = "版本号不能为空")
  @Size(max = 100, message = "版本号长度不能超过100个字符")
  private String code;

  /** 排序 */
  @Schema(description = "排序")
  private Integer sort;

  /** 分类各级拼接符 */
  @Schema(description = "分类各级拼接符")
  private String splicer;
}
